package cn.fintecher.gis.entity;

import cn.fintecher.gis.enums.SusceptibleGrand;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "district_info")
@Data
public class DistrictInfo extends BaseEntity {

    @ApiModelProperty(notes = "行政区代码")
    private String districtCode;

    @ApiModelProperty(notes = "行政区名称")
    private String districtName;

    @ApiModelProperty(notes = "父级id")
    private String parentId;

    @ApiModelProperty(notes = "地灾易发区级别")
    @Enumerated(EnumType.STRING)
    private SusceptibleGrand susceptible;
}
